<template>
  <div>
    <div class="container">
      <div class="box_title">热招职位</div>
      <div class="tab_box">
        <el-tabs
          v-model="activeName"
          @tab-click="handleClick"
          sactive-text-color="#333"
          text-color="#00c2b3"
        >
          <el-tab-pane label="IT.互联网" name="first" text-color="#00c2b3">
            <div class="tab_content">
              <el-row
                class="row"
                :gutter="12"
              >
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/bar/20191211/cff98890aeac18b0f4dee3577d92d543be1bd4a3bd2a63f070bdbdada9aad826.jpg?x-oss-process=image/resize,w_60,limit_0" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
              </el-row>
              <el-row :gutter="12" class="row">
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
              </el-row>
              <el-row :gutter="12" class="row">
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
              </el-row>
            </div>
          </el-tab-pane>
          <el-tab-pane label="金融" name="second">
            <div class="tab_content">
              <el-row
                class="row"
                :gutter="12"
              >
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师2</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
              </el-row>
              <el-row :gutter="12" class="row">
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
              </el-row>
            </div>
          </el-tab-pane>
          <el-tab-pane label="房地产.建筑" name="third">
            <div class="tab_content">
              <el-row
                class="row"
                :gutter="12"
              >
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
              </el-row>
              <el-row :gutter="12" class="row">
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
              </el-row>
            </div>
          </el-tab-pane>
          <el-tab-pane label="教育培训" name="fourth">
            <div class="tab_content">
              <el-row
                class="row"
                :gutter="12"
              >
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
              </el-row>
              <el-row :gutter="12" class="row">
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
                <el-col :span="8" class="item">
                  <el-card shadow="hover" class="card" style="display: flex">
                    <div class="left_img">
                      <img src="https://img.bosszhipin.com/beijin/mcs/chatphoto/20200326/da9445b4143cd053a18e7a5a18a7ac8cc72f17a85139ef623ce6c5178bb31f38_s.jpg" alt="">
                    </div>
                    <div class="right">
                      <span class="title">数据库工程师</span>
                      <div>
                        <span>深圳</span>
                        |
                        <span>3-5年</span>
                        |
                        <span>本科</span>
                      </div>
                      <div class="salary">20-30k</div>
                    </div>
                  </el-card>
                </el-col>
              </el-row>
            </div>
          </el-tab-pane>
        </el-tabs>
      </div>
      <div class="button_more">查看更多</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'TabBox',
  data () {
    return {
      activeName: 'first'
    }
  },
  methods: {
    handleClick (tab, event) {
      console.log(tab, event)
    }
  }
}
</script>

<style lang="scss" scoped>
::v-deep .el-card__body {
  display: flex;
}

::v-deep .el-tabs__header {
  padding: 0 10px;
}

::v-deep .el-tabs__header {
  margin: 0;
}

.box_title {
  position: relative;
  text-align: center;
  padding: 20px 0;
  font-size: 24px;
  color: #414a60;

  &::after {
    content: '';
    position: absolute;
    top: 49%;
    right: 493px;
    display: inline-block;
    width: 50px;
    height: 1px;
    background-color: #d1d4db;
  }

  &::before {
    content: '';
    position: absolute;
    left: 490px;
    top: 49%;
    display: inline-block;
    width: 50px;
    height: 1px;
    background-color: #d1d4db;
  }
}

.tab_box {
  background-color: #ffffff;

  .tab_content {
    width: 100%;
    height: auto;
    background-color: #f6f6f8;

    .row {
      .item {
        margin: 10px 0;
        height: 130px;

        .el-card {
          height: 100%;
          width: 100%;
        }

        .card {
          display: flex;

          &:hover {
            cursor: pointer;

            .right {
              .title {
                color: #00d7c6;
              }
            }
          }

          .left_img {
            width: 58px;
            height: 58px;

            img {
              width: 100%;
            }
          }

          .right {
            flex: 1;
            padding-left: 10px;

            .title {
              color: #61687c;
              font-size: 16px;
              line-height: 35px;
            }

            span {
              margin: 0 5px;
              font-size: 12px;
              color: #61687c;
            }

            .salary {
              display: block;
              margin-top: 15px;
              color: #fc6c38;
              margin-left: 10px;
            }
          }
        }
      }
    }
  }
}

.button_more {
  width: 382px;
  height: 32px;
  /*background-color: #F6F6EC;*/
  text-align: center;
  line-height: 32px;
  color: #00c2b3;
  margin: 0 auto;
  border: 1px #5dd5c8 solid;
  transition: .2s linear;

  &:hover {
    background-color: #00c2b3;
    color: #ffffff;
    cursor: pointer;
  }
}
</style>
